package com.pucong.gitee.database.backup.common.entity.sys;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
* @author pucong
* @company gitee.com/pucong
* @create 2020-12-01
*/
@Data
@TableName("sys_role")
@ApiModel("角色信息")
public class SysRole implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "uuid",type = IdType.INPUT)
    @ApiModelProperty("主键")
    private String uuid;

    @NotBlank
    @TableField("ROLE_NAME")
    @ApiModelProperty("角色名称")
    private String roleName;

    @TableField("DESCRIPTION")
    @ApiModelProperty("描述")
    private String description;

    @TableField("create_time")
    @ApiModelProperty("创建日期")
    private Date createTime;

    @TableField("create_by")
    @ApiModelProperty("创建人id")
    private String createBy;
}
